package main

import (
	"fmt"
)

type Box struct {
	length float64
	width float64
	high float64
}

func (bb *Box) getV() (result float64) {
	result = bb.length * bb.width * bb.high
	return
}

func main()  {
	var b Box
	fmt.Print("输入长:")
	fmt.Scanln(&b.length)
	fmt.Print("输入宽:")
	fmt.Scanln(&b.width)
	fmt.Print("输入高:")
	fmt.Scanln(&b.high)

	result := b.getV()
	fmt.Println(result)
}

